package com.ruoyi.jxxwx.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 巡查记录业务对象 jxx_patrol
 *
 * @author ruoyi
 * @date 2025-04-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class JxxPatrolBo extends BaseEntity {

    /**
     * 巡查记录主键
     */
    @NotNull(message = "巡查记录主键不能为空", groups = { EditGroup.class })
    private Long patrolId;

    /**
     * 巡查时间
     */
    @NotNull(message = "巡查时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date patrolTime;

    /**
     * 场所id
     */
    @NotNull(message = "场所id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long placeId;

    /**
     * 巡查人
     */
    @NotBlank(message = "巡查人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String patrolUserName;

    /**
     * 巡查单位
     */
    @NotBlank(message = "巡查单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String patrolDept;

    /**
     * 巡检辖区
     */
    @NotBlank(message = "巡检辖区不能为空", groups = { AddGroup.class, EditGroup.class })
    private String patrolArea;

    /**
     * 巡查图片地址
     */
    @NotBlank(message = "巡查图片地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String patrolPictureUrl;

    /**
     * 巡查说明
     */
    @NotBlank(message = "巡查说明不能为空", groups = { AddGroup.class, EditGroup.class })
    private String patrolResult;

    /**
     * 预留字段
     */
    @NotBlank(message = "预留字段不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reserve;

    /**
     * 预留字段2
     */
    @NotBlank(message = "预留字段2不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reserve2;

    /**
     * 预留字段3
     */
    @NotBlank(message = "预留字段3不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reserve3;


}
